<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link href="css/bootstrap.css" rel="stylesheet" media="screen">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Login</title>

<script>
var nome = "Luca";
var eta = 23;

	var persona = {
		nomePersona : nome,
		etaPersona : eta
	};
	
	function setDisabled() {
		if (document.getElementById("sendbutton").disabled) {
			document.getElementById("sendbutton").disabled = false;
		} else {
			document.getElementById("sendbutton").disabled = true;
		}
			
	}
</script>

</head>
<body>
<h3 id="titolo">Login</h3>
	<form name="f1" method="post" action="Login">
		User <input placeholder="Username" type="text" name="user"/><br/>
		Password <input placeholder="Password" type="password" name="pw"/><br/>
		<input id="sendbutton" class="btn btn-primary" type="submit" value="invia" name="inv"/>
	</form>
	
	<button type="button" onclick="setDisabled()">Set disabled</button>
</body>
</html>